package com.cn.core.utils;

import com.cn.core.ids.SnowflakeIdGenerator;

/**
 * &#064;Time 2024 九月 星期二 15:34
 *
 * @author ShangGuan
 */
public class IdUtils {


    public static Long snowflakeAlgorithm(){
        return new SnowflakeIdGenerator(1,1).nextId();
    }
    public static Long snowflakeAlgorithm(Integer workerId,Integer datacenterId){
        return new SnowflakeIdGenerator(workerId,datacenterId).nextId();
    }
}
